package com.demo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author zqc
 * @Date 2020/11/16-14:32
 * @Description
 */
@Data
public class ExcelPo {
    @ApiModelProperty("ID")
    private Long id;
    @ApiModelProperty("NAME")
    private String name;
    @ApiModelProperty("学号")
    private String numb;
    @ApiModelProperty("成绩")
    private Integer score;


    public enum Field {
        id("id", "ID"),
        name("name", "NAME"),
        numb("numb", "学号"),
        score("score", "成绩"),
        ;

        private String field;
        private String value;

        Field(String field, String value) {
            this.field = field;
            this.value = value;
        }

        public String getField() {
            return field;
        }
        public String getValue() {
            return value;
        }
    }


    public ExcelPo(Long id, String name, String numb, Integer score) {
        this.id = id;
        this.name = name;
        this.numb = numb;
        this.score = score;
    }
}
